﻿package common.utils.dt
{
    import flash.events.*;

    public class RealTimerEvent extends Event
    {
        private var _step:uint;
        private var _pastUnitCount:uint;
        public static const RealTimer:String = "realtimer";
        public static const Complete:String = "complete";
        public static const StepTimeup:String = "stepTimeup";
        public static const StepOver:String = "stepOver";

        public function RealTimerEvent(param1:String, param2:uint = 0, param3:uint = 1)
        {
            super(param1, false, false);
            this._step = param2;
            this._pastUnitCount = param3;
            return;
        }

        public function get step() : uint
        {
            return this._step;
        }

        public function get pastUnitCount() : uint
        {
            return this._pastUnitCount;
        }

        override public function clone() : Event
        {
            return new RealTimerEvent(type, this.step);
        }

        override public function toString() : String
        {
            return formatToString("RealTimer", "step");
        }

    }
}
